import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {TemplateComponent} from "./template.component";
import {TemplateAddComponent} from "./template-add/template-add.component";
import {TemplateUpdateComponent} from "./template-update/template-update.component";


const routes: Routes = [
  {
    path: "",
    component: TemplateComponent
  },
  {
    path: "add",
    component: TemplateAddComponent
  },
  {
    path: "update",
    component: TemplateUpdateComponent
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class TemplateRoutingModule { }
